'use strict';

const Controller = require('egg').Controller;

class ErrorController extends Controller {
  async index() {
    const { ctx } = this;
    ctx.body = this.config.sendJson({
      code: this.config.code.MESSAGE,
      data: "",
      message: "访问有误",
    });
  }
}

module.exports = ErrorController;
